package model;

public class DepartVO {
	private String dept_tr = null;
	private String dept_no = null;
	private String dept_name = null;
	private String dept_tel = null;
	private String dept_loc = null;
	private String prof_no = null;
	private String reg_date = null;
	
	public DepartVO() { }
	public DepartVO(String dept_no, String dept_name, String dept_tel, String dept_loc, String prof_no) { 
		this.dept_no  = dept_no;
		this.dept_name = dept_name;
		this.dept_tel = dept_tel;
		this.dept_loc = dept_loc;
		this.prof_no = prof_no;
	}
	
	public void setDept_tr(String dept_tr) { this.dept_tr = dept_tr; }
	public void setDept_no(String dept_no) { this.dept_no = dept_no; }
	public void setDept_name(String dept_name) { this.dept_name = dept_name; }
	public void setDept_tel(String dept_tel) { this.dept_tel = dept_tel; }
	public void setDept_loc(String dept_loc) { this.dept_loc = dept_loc; }
	public void setProf_no(String prof_no) { this.prof_no = prof_no; }
	public void setReg_date(String reg_date) { this.reg_date = reg_date; }
	public String getDept_tr() { return dept_tr; }
	public String getDept_no() { return dept_no; }
	public String getDept_name() { return dept_name; }
	public String getDept_tel() { return dept_tel; }
	public String getDept_loc() { return dept_loc; }
	public String getProf_no() { return prof_no; }
	public String getReg_date() { return reg_date; }
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("\n*** 입력하신 학과 정보 입니다. ***");
		if ( getDept_tr() != null ) {
			sb.append("\n○ 학과 순번 : ").append(getDept_tr());
		}
		sb.append("\n○ 학과 번호 : ").append(getDept_no())	.append("\n○ 학과 이름 : ").append(getDept_name())
		.append("\n○ 학과 연락처 : ").append(getDept_tel()).append("\n○ 학과 교수 : ").append(getProf_no());
		if ( getReg_date() != null ) {
			sb.append("\n○ 등록 일자 : ").append(getReg_date());
		}
		return sb.toString();
	}
}